import Layout from "@/page/index/";

export default [
  {
    path: "/login",
    name: "登录页",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/page/login/index"),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/wel",
    component: Layout,
    redirect: "/wel/index",
    children: [
      {
        path: "index",
        name: "首页",
        component: () => import(/* webpackChunkName: "views" */ "@/page/wel"),
      },
    ],
  },
  /*{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
      path: 'index',
      name: '首页',
      component: () =>
        import(/!* webpackChunkName: "views" *!/ '@/views/pfoc/home/index')
}]
},*/

  {
    path: "/O3-factory",
    name: "工厂大屏",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/factoryLargeScreen/components/bigScreen.vue"
      ),
    // import(/* webpackChunkName: "page" */ '@/views/report/screen/O3-factory'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/O3-line",
    name: "产线大屏",
    component: () =>
      // import(/* webpackChunkName: "page" */ "@/views/report/screen/O3-line"),
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/productionLineLargeScreen/components/bigScreen.vue"
      ),

    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/O3-workorder",
    name: "车间大屏",
    component: () =>
      // import(/* webpackChunkName: "page" */ "@/views/report/screen/O3-line"),
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/workshopLargeScreen/components/bigScreen.vue"
      ),

    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },

  {
    path: "/workOrderReport",
    name: "报工页",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/workorderreport/workOrderReport"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/DR8IlRl",
    name: "DR8插回损",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/ilrlview/DR8-ILRL"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/GEN1.5IlRl",
    name: "GEN1.5",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/ilrlview/GEN1.5-ILRL"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/SR8GEM2IlRl",
    name: "SR8 GEM2插回损",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/ilrlview/SR8-ILRL"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/cpk",
    name: "CPK看板",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/tempallcpk/tempAllCpk.vue"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/test",
    name: "日历排产",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/workorder/workordercps/test.vue"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/lock",
    name: "锁屏页",
    component: () => import(/* webpackChunkName: "page" */ "@/page/lock/index"),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/404",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/404"),
    name: "404",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: true,
    },
  },
  {
    path: "/403",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/403"),
    name: "403",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/500",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/components/error-page/500"),
    name: "500",
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/",
    name: "主页",
    redirect: "/wel",
  },
  {
    path: "/myiframe",
    component: Layout,
    redirect: "/myiframe",
    children: [
      {
        path: ":routerPath",
        name: "iframe",
        component: () =>
          import(/* webpackChunkName: "page" */ "@/components/iframe/main"),
        props: true,
      },
    ],
  },
  {
    path: "*",
    redirect: "/404",
  },
  {
    path: "/authredirect",
    name: "授权页",
    component: () =>
      import(/* webpackChunkName: "page" */ "@/page/login/authredirect"),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/edit-line-device",
    name: "报工页",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/pfoc/realityproducelinemodeling/edit-line-device"
      ),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false,
    },
  },
  {
    path: "/middlePage",
    name: "middlePage",
    component: () =>
      import(
        /* webpackChunkName: "page" */ "@/views/middlePage"
      ),
    meta: {
      keepAlive: false,
      isTab: false,
      isAuth: false,
    },
  },
];
